
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon cmui cmui-change"></i>
                    <div class="name">change</div>
                    <div class="fontclass">.cmui-change</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-close"></i>
                    <div class="name">close</div>
                    <div class="fontclass">.cmui-close</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-close1"></i>
                    <div class="name">close</div>
                    <div class="fontclass">.cmui-close1</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-refresh"></i>
                    <div class="name">refresh</div>
                    <div class="fontclass">.cmui-refresh</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-close2"></i>
                    <div class="name">close</div>
                    <div class="fontclass">.cmui-close2</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-check"></i>
                    <div class="name">check</div>
                    <div class="fontclass">.cmui-check</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-download"></i>
                    <div class="name">download</div>
                    <div class="fontclass">.cmui-download</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-question"></i>
                    <div class="name">question</div>
                    <div class="fontclass">.cmui-question</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-form"></i>
                    <div class="name">form</div>
                    <div class="fontclass">.cmui-form</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-exchange"></i>
                    <div class="name">exchange</div>
                    <div class="fontclass">.cmui-exchange</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-top"></i>
                    <div class="name">Top</div>
                    <div class="fontclass">.cmui-top</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-download1"></i>
                    <div class="name">download</div>
                    <div class="fontclass">.cmui-download1</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-angle"></i>
                    <div class="name">angle</div>
                    <div class="fontclass">.cmui-angle</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-dingwei"></i>
                    <div class="name">定位</div>
                    <div class="fontclass">.cmui-dingwei</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-icon"></i>
                    <div class="name">定位</div>
                    <div class="fontclass">.cmui-icon</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-lg-up"></i>
                    <div class="name">top</div>
                    <div class="fontclass">.cmui-lg-up</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-top2"></i>
                    <div class="name">top</div>
                    <div class="fontclass">.cmui-top2</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-top3"></i>
                    <div class="name">top</div>
                    <div class="fontclass">.cmui-top3</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-top4"></i>
                    <div class="name">top</div>
                    <div class="fontclass">.cmui-top4</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-back"></i>
                    <div class="name">back</div>
                    <div class="fontclass">.cmui-back</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-dingwei1"></i>
                    <div class="name">定位</div>
                    <div class="fontclass">.cmui-dingwei1</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-radio"></i>
                    <div class="name">radio</div>
                    <div class="fontclass">.cmui-radio</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-lg-down"></i>
                    <div class="name">bottom</div>
                    <div class="fontclass">.cmui-lg-down</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-staro"></i>
                    <div class="name">starO</div>
                    <div class="fontclass">.cmui-staro</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-close3"></i>
                    <div class="name">close</div>
                    <div class="fontclass">.cmui-close3</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-switch"></i>
                    <div class="name">switch</div>
                    <div class="fontclass">.cmui-switch</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-lg-right"></i>
                    <div class="name">arrow</div>
                    <div class="fontclass">.cmui-lg-right</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-buttonp"></i>
                    <div class="name">button-p</div>
                    <div class="fontclass">.cmui-buttonp</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-back3"></i>
                    <div class="name">back</div>
                    <div class="fontclass">.cmui-back3</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-error"></i>
                    <div class="name">error</div>
                    <div class="fontclass">.cmui-error</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-batch-op"></i>
                    <div class="name">批量操作</div>
                    <div class="fontclass">.cmui-batch-op</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-star"></i>
                    <div class="name">star</div>
                    <div class="fontclass">.cmui-star</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-checkbox-active"></i>
                    <div class="name">checkbox</div>
                    <div class="fontclass">.cmui-checkbox-active</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-warning"></i>
                    <div class="name">icon-warning</div>
                    <div class="fontclass">.cmui-warning</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-chaxun"></i>
                    <div class="name">查询</div>
                    <div class="fontclass">.cmui-chaxun</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-input"></i>
                    <div class="name">input</div>
                    <div class="fontclass">.cmui-input</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-upload"></i>
                    <div class="name">UPLOAD</div>
                    <div class="fontclass">.cmui-upload</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-tubiao05"></i>
                    <div class="name">exchange-3</div>
                    <div class="fontclass">.cmui-tubiao05</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-info"></i>
                    <div class="name">info</div>
                    <div class="fontclass">.cmui-info</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-lg-left"></i>
                    <div class="name">back</div>
                    <div class="fontclass">.cmui-lg-left</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-back2"></i>
                    <div class="name">back</div>
                    <div class="fontclass">.cmui-back2</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-bangekongxing"></i>
                    <div class="name">half_star</div>
                    <div class="fontclass">.cmui-bangekongxing</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-textarea"></i>
                    <div class="name">diy-com-textarea</div>
                    <div class="fontclass">.cmui-textarea</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-loading"></i>
                    <div class="name">loading</div>
                    <div class="fontclass">.cmui-loading</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-angle-down"></i>
                    <div class="name">angle-down</div>
                    <div class="fontclass">.cmui-angle-down</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-angle-left"></i>
                    <div class="name">angle-left</div>
                    <div class="fontclass">.cmui-angle-left</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-angle-right"></i>
                    <div class="name">angle-right</div>
                    <div class="fontclass">.cmui-angle-right</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-angle-up"></i>
                    <div class="name">angle-up</div>
                    <div class="fontclass">.cmui-angle-up</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-dropdown"></i>
                    <div class="name">amy-ui-dropdown</div>
                    <div class="fontclass">.cmui-dropdown</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-success"></i>
                    <div class="name">success</div>
                    <div class="fontclass">.cmui-success</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-outdent"></i>
                    <div class="name">收缩</div>
                    <div class="fontclass">.cmui-outdent</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-button"></i>
                    <div class="name">button</div>
                    <div class="fontclass">.cmui-button</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-quit"></i>
                    <div class="name">退出</div>
                    <div class="fontclass">.cmui-quit</div>
                </li>
            
                <li>
                <i class="icon cmui cmui-indent"></i>
                    <div class="name">收缩</div>
                    <div class="fontclass">.cmui-indent</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">cmui</span> <span class="hljs-selector-tag">cmui-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"cmui"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
